package com.zmc.coupon.infrastructure.dao;

import com.zmc.coupon.infrastructure.entity.CouponHistoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 优惠券领取历史记录
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 14:59:36
 */
@Mapper
public interface CouponHistoryDao extends BaseMapper<CouponHistoryEntity> {

    boolean updateByOrderSn(@Param("orderSn") String orderSn);

    void updateExpiredByCouponId(@Param("couponId") Long couponId);

}
